package com.zt.ztyh.entity;

import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import lombok.Data;

import java.io.Serializable;
import java.math.BigDecimal;
import java.util.Date;

/**
 *
 * @TableName ztyh_funds_user
 */
@TableName(value ="ztyh_funds_user")
@Data
public class ZtyhFundsUser implements Serializable {
    /**
     *
     */
    @TableId(value = "id")
    private Long id;

    /**
     * 理财产品外键
     */
    @TableField(value = "fid")
    private Long fid;

    /**
     * 用户外键
     */
    @TableField(value = "uid")
    private Long uid;

    /**
     * 买入金额
     */
    @TableField(value = "amount")
    private BigDecimal amount;

    /**
     *
     */
    @TableField(value = "create_time")
    private Date createTime;

    /**
     * 赎回时间
     */
    @TableField(value = "update_time")
    private Date updateTime;

    /**
     * 0:正在理财   1:已赎回
     */
    @TableField(value = "state")
    private Integer state;

    /**
     *
     */
    @TableField(value = "redundancy1")
    private String redundancy1;

    /**
     *
     */
    @TableField(value = "redundancy2")
    private String redundancy2;

    @TableField(exist = false)
    private static final long serialVersionUID = 1L;
}
